home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / tspa3140.zip / TSUNT45.INT < prev    next >
Text File  |  1992-06-13  |  3KB  |  79 lines

  1. {$B-,D-,F-,I+,N-,R-,S+,V+}
  2.  
  3. (*
  4. Timo Salmi UNiT 4.0 to 5.0
  5. A Turbo Pascal 4.0 unit to add TP 5.0 / 5.5 procedures and functions which
  6. are missing in version 4.0
  7. All rights reserved 8-Aug-90, 21-Jun-91, 1-Jan-92
  8.  
  9. This unit may be used and distributed freely for PRIVATE, NON-COMMERCIAL,
  10. NON-INSTITUTIONAL purposes, provided it is not changed in any way. For
  11. ANY other usage, such as use in a business enterprise or at a university,
  12. please contact the author for the terms of registration.
  13.  
  14. The units are under development. Comments and contacts are solicited. If
  15. you have any questions, please do not hesitate to use electronic mail for
  16. communication.
  17. InterNet address: ts@chyde.uwasa.fi         (preferred)
  18. Funet address:    GADO::SALMI
  19. Bitnet address:   SALMI@FINFUN
  20.  
  21. The author shall not be liable to the user for any direct, indirect or
  22. consequential loss arising from the use of, or inability to use, any unit,
  23. program or file howsoever caused. No warranty is given that the units and
  24. programs will work under all circumstances.
  25.  
  26. Timo Salmi
  27. Professor of Accounting and Business Finance
  28. Faculty of Accounting & Industrial Management; University of Vaasa
  29. P.O. BOX 297, SF-65101 Vaasa, Finland
  30. *)
  31.  
  32. unit TSUNT45;
  33.  
  34. (* ======================================================================= *)
  35.                           interface
  36. (* ======================================================================= *)
  37.  
  38. uses Dos;
  39.  
  40. {$IFDEF VER40}
  41.  
  42. type PathStr = string[79];
  43.  
  44. (* Since the function DosVersion to retrieve the Dos version is only
  45.    available in Turbo Pascal versions 5.0 and 5.5, we must write our
  46.    own for version 4.0 *)
  47. function DosVersion : word;
  48.  
  49. (* The number of strings contained in the DOS environment *)
  50. function EnvCount : integer;
  51.  
  52. (* The value of an environment string defined by index count *)
  53. function EnvStr (index : integer) : string;
  54.  
  55. (* The value of an environment string defined by string id *)
  56. function GetEnv (EnvVar : string) : string;
  57.  
  58. (* The name of the program *)
  59. function ParamStr0 : string;
  60.  
  61. (* Expand a file name into a fully qualified file name *)
  62. function FExpand (fname : PathStr) : PathStr;
  63.  
  64. (* Is the MsDos verify disk write on or off, cf MsDos verify *)
  65. procedure GetVerify (var verify : boolean);
  66.  
  67. (* Set the MsDos verify disk write on or off, cf MsDos verify *)
  68. procedure SetVerify (verify : boolean);
  69.  
  70. (* Get the state of Ctr-Break checking in DOS *)
  71. procedure GetCBreak (var break : boolean);
  72.  
  73. (* Set state of Ctr-Break checking in DOS *)
  74. procedure SetCBreak (break : boolean);
  75.  
  76. {$ENDIF}
  77.  
  78.  
  79.